package org.yaglyf.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.omg.CORBA.Object;
import org.springframework.stereotype.Component;

/**
 * Title: Class CommentsShow
 * Description:
 * 注释展示类，说明各种方法注释怎么写
 *
 * @author qiang.yang
 * @version 1.0.0
 * @email qiang.yang@chinaredstar.com
 * @date: 2016/9/19 20:07
 */
@Aspect
@Component
public class MyCacheManage {

    @Pointcut("@annotation(org.yaglyf.aop.MyCache)")
    public void pointCut(){

    }

    @Around("pointCut()")
    public Object doAround(ProceedingJoinPoint pjp){
        System.out.println("aaaa");
        System.out.println("aaa");
        System.out.println("aaaa");
        System.out.println("aaaa");


        return null;
    }






}
